﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | ServerFramework | EventTelegram.cs
// //  Created : 2016 - 02 - 16 20:53
// //  Modified: 2016 - 02 - 20 12:33
// //  ********************************************************************************

using System.Collections.Generic;
using ServerFramework.Interfaces.Telegram;
using TypeDefs;

namespace ServerFramework.Implementation.Telegram
{
    /// <summary>
    ///     Class EventTelegram.
    /// </summary>
    public class EventTelegram : ITelegram
    {
        public TelegramTypes Type => TelegramTypes.Event;
        public byte Code { get; }
        public int? SubCode { get; }
        public Dictionary<byte, object> Parameters { get; }

        public EventTelegram(byte code, int? subCode, Dictionary<byte, object> parameters)
        {
            Code = code;
            SubCode = subCode;
            Parameters = parameters;
        }
    }
}
